package one.stand.mapper;

import one.stand.dto.CompanyServiceDto;
import one.stand.model.Company;
import one.stand.model.CompanyApplyRecordModel;
import one.stand.model.CompanyModel;
import one.stand.response.CompanyResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public interface CompanyMapperExt extends CompanyMapper {

    List<Company> selectAll(CompanyModel record);

    Integer getAgentCompanyId(String companyKey);

    CompanyResponse crmCompany(Integer companyId);

    CompanyResponse crmCompanyInfo(CompanyModel companyId);

    List<Company> getCompanyByUserPhone(String phone);

    Company selectByKey(@Param("key") String key);

    Company selectByUserId(@Param("userId") Integer userId);

    void updateAgentTime(@Param("companyId") Integer companyId);

    List<Map> applyCompanyList(@Param("request") CompanyApplyRecordModel request);

    Company selectByName(@Param("companyName") String companyName);

    void updateShowRoomStateById(@Param("companyId")Integer companyId,@Param("showRoomState") Integer showRoomState);

    CompanyServiceDto selectService(@Param("companyId") Integer companyId);

    Integer selectLicense(@Param("companyId") Integer companyId);
}